﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<ShopOnline.Models.Press>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	defaut
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>defaut</h2>

    <table>
        
    <% foreach (var item in Model) { %>
        <div style="border-bottom:1px"> 
            <p> <%= item.title %></p>
            <p> <%= item.description %></p>
            <p> <%= item.body %></p>
            <p> <%= Html.ActionLink("Details", "BrowsePress", "Press", new { id = item.pressId }, null)%></p>
        </div>
    
    <% } %>

    </table>

    <p>
        <%= Html.ActionLink("Create New", "Create") %>
    </p>

</asp:Content>

